// 容器类名
$container-name: 'body';
//字体
$body-font-family: 'Roboto', sans-serif !default;

$color-pack: true !default;

// margin，padding间距
$spacer: 8px !default;
$spacers: () !default;

@if (type-of($spacers) ==list) {
  @for $i from 0 to 13 {
    $spacers: map-merge(
      $spacers,
      (
        $i: $spacer * $i
      )
    );
  }
}
//负的margin值
$negative-spacers: () !default;

@if (type-of($negative-spacers) ==list) {
  @for $i from 0 to 13 {
    $negative-spacers: map-merge($negative-spacers, ('n' + $i: -$spacer * $i));
  }
}

// 字体
$font-weights: () !default;
$font-weights: map-deep-merge(
  (
    'thin': 100,
    'light': 300,
    'regular': 400,
    'medium': 500,
    'bold': 700,
    'black': 900
  ),
  $font-weights
);

// 标题
$heading-font-family: $body-font-family !default;

$headings: () !default;
$headings: map-deep-merge(
  (
    'h1': (
      'size': 96px,
      'weight': 300,
      'line-height': 96px,
      'letter-spacing': -0.015625em,
      'font-family': $heading-font-family
    ),
    'h2': (
      'size': 60px,
      'weight': 300,
      'line-height': 60px,
      'letter-spacing': -0.0083333333em,
      'font-family': $heading-font-family
    ),
    'h3': (
      'size': 48px,
      'weight': 400,
      'line-height': 50px,
      'letter-spacing': normal,
      'font-family': $heading-font-family
    ),
    'h4': (
      'size': 34px,
      'weight': 400,
      'line-height': 40px,
      'letter-spacing': 0.0073529412em,
      'font-family': $heading-font-family
    ),
    'h5': (
      'size': 24px,
      'weight': 400,
      'line-height': 32px,
      'letter-spacing': normal,
      'font-family': $heading-font-family
    ),
    'h6': (
      'size': 20px,
      'weight': 500,
      'line-height': 32px,
      'letter-spacing': 0.0125em,
      'font-family': $heading-font-family
    ),
    'subtitle-1': (
      'size': 16px,
      'weight': 400,
      'line-height': 28px,
      'letter-spacing': 0.009375em,
      'font-family': $body-font-family
    ),
    'subtitle-2': (
      'size': 16px,
      'weight': 500,
      'line-height': 22px,
      'letter-spacing': 0.0071428571em,
      'font-family': $body-font-family
    ),
    'body-2': (
      'size': 14px,
      'weight': 400,
      'letter-spacing': 0.0178571429em,
      'line-height': 25px,
      'font-family': $body-font-family
    ),
    'body-1': (
      'size': 16px,
      'weight': 400,
      'letter-spacing': 0.03125em,
      'line-height': 24px,
      'font-family': $body-font-family
    ),
    'caption': (
      'size': 12px,
      'weight': 400,
      'letter-spacing': 0.0333333333em,
      'line-height': 20px,
      'font-family': $body-font-family
    ),
    'overline': (
      'size': 10px,
      'weight': 400,
      'letter-spacing': 0.1666666667em,
      'line-height': 16px,
      'font-family': $body-font-family
    )
  ),
  $headings
);
